package com.education.serviceedu.controller;

import com.education.commonutils.ResultAjax;
import org.springframework.web.bind.annotation.*;

/**
 * @author zwr
 */
@RestController
@RequestMapping("/eduservice/user")
@CrossOrigin
public class EduLoginController {

    @PostMapping("login")
    public ResultAjax login(){
        return ResultAjax.success().data("token","admin");
    }

    @GetMapping("info")
    public ResultAjax info(){
        return ResultAjax.success().data("roles","[admin]").data("name","admin").data("avatar","https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif");
    }
}
